package com.saa.role.controller;


import com.saa.common.vo.OmsResultVo;
import com.saa.role.service.SaaRoleService;
import com.saa.role.vo.SaaRoleVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/privilege")
public class SaaRoleController {
    private Logger logger = LoggerFactory.getLogger(SaaRoleController.class);
    @Autowired
    private SaaRoleService saaRoleService;

   /****根据应用、状态、创建时间分页查询角色列表，包括下面的权限***/

    /***根据应用代码、角色代码、角色名称查询角色***/
    @PostMapping("/getSaaRoleVoListByApplicationCodeAndComCode")
    public OmsResultVo getSaaRoleVoListByApplicationCodeAndComCode(SaaRoleVo roleVo){
        return OmsResultVo.builder(200, "新增成功", saaRoleService.getSaaRoleVoListByApplicationCodeAndComCode(roleVo));
    }


   /****根据ID获取角色详情***/

    /****根据应用获取角色列表***/

    /****保存角色***/

    /****修改角色***/

    /****删除角色***/

}
